﻿using System;
using System.Xml;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace iPlaylistSync.Test
{
    [TestClass]
    public class UnitTest1
    {
        static string libraryPath = Environment.GetFolderPath(Environment.SpecialFolder.MyMusic) + @"\iTunes\iTunes Music Library.xml";

        [TestMethod]
        public void TestMethod1()
        {
            XmlDocument iTunesMusicLibrary;
            XmlNode playlist;
            XmlNodeList tracks;
            iTunesMusicLibrary = new XmlDocument();
            iTunesMusicLibrary.Load(libraryPath);
            playlist = iTunesMusicLibrary.SelectSingleNode("/plist/dict/key[text()='Playlists']/following-sibling::array");
        }
    }
}
